package ${groupId}.controller;

import ${groupId}.model.*;
import java.util.ArrayList;
import java.util.List;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

@Name("userHome")
public class UserHome extends EntityHome<User> {

	
	private byte[] uploadPicture;
	
	public void setUserId(Integer id) {
		setId(id);
	}


	public Integer getUserId() {
		return (Integer) getId();
	}

	@Override
	protected User createInstance() {
		User user = new User();
		return user;
	}

	public void wire() {
	}

	public boolean isWired() {
		return true;
	}

	public User getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

	public byte[] getUploadPicture() {
		return uploadPicture;
	}

	public void setUploadPicture(byte[] uploadPicture) {
		if (null != uploadPicture) {
			this.instance.setPicture(uploadPicture);
		}
		this.uploadPicture = uploadPicture;
	}

}
